LassoScript Utility
Basics Browse Detail

[File->Delete]

Tag Link [File->Delete] Category File
Type Member Source Available Yes
Support Preferred Version 7.0
Change Unchanged Data Source Any
Output Type None Security File
Implementation LCAPI Sets Lasso 8.5, Lasso 8.0, Lasso 7.0

Description

Deletes the current file.

Syntax

[File Variable->Delete]

Parameters

No Parameters Required.

Examples

To delete a file:

Use the [File->Delete] tag. The following example deletes the myfile.txt file from its current location.

[Var:'File'=(File: 'myfile.txt', File_OpenRead, File_ModeChar)]
[$File->Delete]
[$File->Close]